package com.yn.sys.dao;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import org.apache.ibatis.annotations.Param;

public interface DeviceDao {
    JSONArray queryMonitorRecordByEid(@Param("tableName") String tableName, @Param("eid") int eid);

    JSONArray queryOldDataByEid(@Param("eid") int eid);

    JSONArray queryOldDataByPid(@Param("eid") int eid);

    JSONArray queryAllIotInfo();

    int insertInfoIotInfos(@Param("defaultIotInfos") JSONArray defaultIotInfos);

    int updateIotInfoTime(Object info);

    int insertIotDatas(@Param("iotDatas") JSONArray iotDatas);

    int insertIotData(@Param("iotData") JSONObject iotData);
}
